package com.zy.cat.entity.game;

import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @info 9趣猫刮刮卡翻牌中奖历史实体类
 * @author Link
 * @date 2019-10-30 09:14
 */
@Entity
@Table(name = "zy_cat_game_card_poker_draw_history", indexes = {
		@Index(name = "pid", columnList = "pid"),
		@Index(name = "fid", columnList = "fid"),
		@Index(name = "ftype", columnList = "ftype"),
		@Index(name = "gtype", columnList = "gtype"),
		@Index(name = "dstatus", columnList = "dstatus"),
		@Index(name = "ltime", columnList = "ltime"),
		@Index(name = "ctime", columnList = "ctime") })
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("9趣猫刮刮卡翻牌中奖历史实体类类")
public class CardPokerDrawHistory {
	
	@Id
	@Column(columnDefinition = "CHAR(32) NOT NULL  COMMENT '中奖翻倍ID[9趣猫刮刮卡翻牌中奖历史实体类类]'")
	@ApiModelProperty(value = "中奖翻倍ID", example = "c9adb120ca2b48f88626ebd35000fa08")
	private String fid=UUID.randomUUID().toString().replace("-", "");
	
	@Column(columnDefinition = "VARCHAR(20) NOT NULL COMMENT '用户账号ID[9趣猫刮刮卡中奖历史实体类]'")
	@ApiModelProperty(value = "用户账号ID", example = "fe53d6a4fa29641")
	private String pid;
	
	@Column(columnDefinition = "VARCHAR(20) NOT NULL  COMMENT '创建时间[9趣猫刮刮卡中奖历史实体类]'")
	@ApiModelProperty(value = "创建时间", example = "2019-02-22 12:56:56:666")
	private String ctime;
	
	@Column(columnDefinition = "INT(2) DEFAULT '0' COMMENT '奖励翻倍（0.未翻倍、1.已经翻倍）'")
	@ApiModelProperty(value = "奖励翻倍（0.未翻倍、1.已经翻倍）", example = "0")
	private int ftype;
	
	@Column(columnDefinition = "INT(5) DEFAULT '3' COMMENT '中奖类型(1.金、2.银、3.铜)'")
	@ApiModelProperty(value = "中奖类型(1.金、2.银、3.铜)", example = "32")
	private int gtype;
	
	@Column(columnDefinition = "BIGINT(10) DEFAULT '0' COMMENT '中奖数(现金豆)'")
	@ApiModelProperty(value = "中奖数(现金豆)", example = "100")
	private long dcount;
	
	@Column(columnDefinition = "INT(2) DEFAULT '1' COMMENT '中奖状态，（-1：不结算、0.结算中、1.已结算）'")
	@ApiModelProperty(value = "中奖状态，（-1：不结算、0.结算中、1.已结算）", example = "1")
	private int dstatus;
	
	@Column(columnDefinition = "VARCHAR(20) NOT NULL  COMMENT '最后更改时间'")
	@ApiModelProperty(value = "最后更改时间", example = "2019-02-22 12:56:56:666")
	private String ltime;
	
	@Column(columnDefinition = "VARCHAR(200) DEFAULT '-' COMMENT '备注'")
	@ApiModelProperty(value = "备注", example = "备注")
	private String info = "-";
	
	public CardPokerDrawHistory(String pid) {
		super();
		this.pid = pid;
	}

	public CardPokerDrawHistory(String pid, String ctime, int ftype, long dcount, int dstatus, String ltime) {
		super();
		this.pid = pid;
		this.ctime = ctime;
		this.ftype = ftype;
		this.dcount = dcount;
		this.dstatus = dstatus;
		this.ltime = ltime;
	}
	
}
